home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / MPW_TOOL / TOOLS / TOOLS_WI / ICON_8 / H_FOLDER / PROTO.H < prev    next >
Text File  |  1990-03-02  |  7KB  |  207 lines

  1. /*
  2.  * proto.h -- prototypes for library functions.
  3.  */
  4.  
  5. /*
  6.  * The following code is operating-system dependent. [@proto.01].
  7.  *  Prototypes for library functions.
  8.  */
  9.  
  10. #if PORT
  11. #endif                    /* PORT */
  12.  
  13. #if AMIGA
  14. #if LATTICE
  15. #include <dos.h>
  16. #endif                    /* LATTICE */
  17. /* ****  TEMPORARY *** */
  18. novalue    _exit        Params((int));
  19. novalue    abort        Params((noargs));
  20. long    atol        Params((char *));
  21. pointer    calloc        Params((unsigned,unsigned));
  22. int    execv        Params((char *, char **));
  23. int    execvp        Params((char *, char **));
  24. novalue    exit        Params((int));
  25. char    *getenv        Params((char *));
  26. char    *getmem        Params((unsigned));
  27. pointer    malloc        Params((msize));
  28. pointer    realloc        Params((pointer, unsigned));
  29. char    *strchr        Params((char *s, int i));
  30. int    strcmp        Params((char *s1, char *s2));
  31. char    *strcpy        Params((char *s1, char *s2));
  32. char    *strncat    Params((char *s1, char *s2, int n));
  33. int    strncmp        Params((char *s1, char *s2, int n));
  34. char    *strncpy    Params((char *s1, char *s2, int n));
  35. #endif                    /* ATARI_ST */
  36.  
  37. #if HIGHC_386
  38. /* ****  TEMPORARY *** */
  39. novalue    _exit        Params((int));
  40. novalue    abort        Params((noargs));
  41. long    atol        Params((char *));
  42. pointer    calloc        Params((unsigned,unsigned));
  43. int    execv        Params((char *, char **));
  44. int    execvp        Params((char *, char **));
  45. novalue    exit        Params((int));
  46. char    *getenv        Params((char *));
  47. char    *getmem        Params((unsigned));
  48. pointer    malloc        Params((msize));
  49. pointer    realloc        Params((pointer, unsigned));
  50. char    *strchr        Params((char *s, int i));
  51. int    strcmp        Params((char *s1, char *s2));
  52. char    *strcpy        Params((char *s1, char *s2));
  53. char    *strncat    Params((char *s1, char *s2, int n));
  54. int    strncmp        Params((char *s1, char *s2, int n));
  55. char    *strncpy    Params((char *s1, char *s2, int n));
  56. #endif                    /* HIGHC_386 */
  57.  
  58. #if MACINTOSH
  59. #if MPW
  60. #include <stdlib.h>
  61. #include <string.h>
  62. #else                    /* MPW */
  63. /* ****  TEMPORARY *** */
  64. novalue    _exit        Params((int));
  65. novalue    abort        Params((noargs));
  66. long    atol        Params((char *));
  67. pointer    calloc        Params((unsigned,unsigned));
  68. int    execv        Params((char *, char **));
  69. int    execvp        Params((char *, char **));
  70. novalue    exit        Params((int));
  71. char    *getenv        Params((char *));
  72. char    *getmem        Params((unsigned));
  73. pointer    malloc        Params((msize));
  74. pointer    realloc        Params((pointer, unsigned));
  75. char    *strchr        Params((char *s, int i));
  76. int    strcmp        Params((char *s1, char *s2));
  77. char    *strcpy        Params((char *s1, char *s2));
  78. char    *strncat    Params((char *s1, char *s2, int n));
  79. int    strncmp        Params((char *s1, char *s2, int n));
  80. char    *strncpy    Params((char *s1, char *s2, int n));
  81. #endif                    /* MPW */
  82. #endif                    /* MACINTOSH */
  83.  
  84. #if MSDOS
  85. #include <dos.h>
  86. /* ****  TEMPORARY *** */
  87. novalue    _exit        Params((int));
  88. novalue    abort        Params((noargs));
  89. long    atol        Params((char *));
  90. pointer    calloc        Params((unsigned,unsigned));
  91. int    execv        Params((char *, char **));
  92. int    execvp        Params((char *, char **));
  93. novalue    exit        Params((int));
  94. char    *getenv        Params((char *));
  95. char    *getmem        Params((unsigned));
  96. pointer    malloc        Params((msize));
  97. pointer    realloc        Params((pointer, unsigned));
  98. char    *strchr        Params((char *s, int i));
  99. int    strcmp        Params((char *s1, char *s2));
  100. char    *strcpy        Params((char *s1, char *s2));
  101. char    *strncat    Params((char *s1, char *s2, int n));
  102. int    strncmp        Params((char *s1, char *s2, int n));
  103. char    *strncpy    Params((char *s1, char *s2, int n));
  104. #endif                    /* MSDOS */
  105.  
  106. #if OS2
  107. #include <dos.h>
  108. /* ****  TEMPORARY *** */
  109. novalue _exit        Params((int));
  110. novalue abort        Params((noargs));
  111. long    atol        Params((char *));
  112. pointer calloc        Params((unsigned,unsigned));
  113. int    execv        Params((char *, char **));
  114. int    execvp        Params((char *, char **));
  115. novalue exit        Params((int));
  116. char    *getenv     Params((char *));
  117. char    *getmem     Params((unsigned));
  118. pointer malloc        Params((msize));
  119. pointer realloc     Params((pointer, unsigned));
  120. char    *strchr     Params((char *s, int i));
  121. int    strcmp        Params((char *s1, char *s2));
  122. char    *strcpy     Params((char *s1, char *s2));
  123. char    *strncat    Params((char *s1, char *s2, int n));
  124. int    strncmp     Params((char *s1, char *s2, int n));
  125. char    *strncpy    Params((char *s1, char *s2, int n));
  126. #endif                    /* OS2 */
  127.  
  128. #if UNIX
  129. #ifndef NoUnixProtos
  130. novalue    _exit        Params((int));
  131. novalue    abort        Params((noargs));
  132. long    atol        Params((char *));
  133. pointer    calloc        Params((unsigned,unsigned));
  134. int    execv        Params((char *, char **));
  135. int    execvp        Params((char *, char **));
  136. novalue    exit        Params((int));
  137. char    *getenv        Params((char *));
  138. char    *getmem        Params((unsigned));
  139. pointer    malloc        Params((msize));
  140. pointer    realloc        Params((pointer, unsigned));
  141. char    *strchr        Params((char *s, int i));
  142. int    strcmp        Params((char *s1, char *s2));
  143. char    *strcpy        Params((char *s1, char *s2));
  144. char    *strncat    Params((char *s1, char *s2, int n));
  145. int    strncmp        Params((char *s1, char *s2, int n));
  146. char    *strncpy    Params((char *s1, char *s2, int n));
  147. #endif                    /* NoUnixProtos */
  148. #endif                    /* UNIX */
  149.  
  150. #if VM || MVS
  151. /* ****  TEMPORARY *** */
  152. novalue    _exit        Params((int));
  153. novalue    abort        Params((noargs));
  154. long    atol        Params((char *));
  155. pointer    calloc        Params((unsigned,unsigned));
  156. int    execv        Params((char *, char **));
  157. int    execvp        Params((char *, char **));
  158. novalue    exit        Params((int));
  159. char    *getenv        Params((char *));
  160. char    *getmem        Params((unsigned));
  161. pointer    malloc        Params((msize));
  162. pointer    realloc        Params((pointer, unsigned));
  163. char    *strchr        Params((char *s, int i));
  164. int    strcmp        Params((char *s1, char *s2));
  165. char    *strcpy        Params((char *s1, char *s2));
  166. char    *strncat    Params((char *s1, char *s2, int n));
  167. int    strncmp        Params((char *s1, char *s2, int n));
  168. char    *strncpy    Params((char *s1, char *s2, int n));
  169. #endif                    /* VM || MVS */
  170.  
  171. #if VMS
  172. /* ****  TEMPORARY *** */
  173. novalue    _exit        Params((int));
  174. novalue    abort        Params((noargs));
  175. long    atol        Params((char *));
  176. pointer    calloc        Params((unsigned,unsigned));
  177. int    execv        Params((char *, char **));
  178. int    execvp        Params((char *, char **));
  179. novalue    exit        Params((int));
  180. char    *getenv        Params((char *));
  181. char    *getmem        Params((unsigned));
  182. pointer    malloc        Params((msize));
  183. pointer    realloc        Params((pointer, unsigned));
  184. char    *strchr        Params((char *s, int i));
  185. int    strcmp        Params((char *s1, char *s2));
  186. char    *strcpy        Params((char *s1, char *s2));
  187. char    *strncat    Params((char *s1, char *s2, int n));
  188. int    strncmp        Params((char *s1, char *s2, int n));
  189. char    *strncpy    Params((char *s1, char *s2, int n));
  190. #endif                    /* VMS */
  191.  
  192. /*
  193.  * End of operating-system specific code.
  194.  */
  195.  
  196. #ifdef KeyboardFncs
  197. int    getch        Params((noargs));
  198. int    getche        Params((noargs));
  199. int    kbhit        Params((noargs));
  200. #endif                    /* KeyboardFncs */
  201.  
  202. #ifdef SystemFncs
  203. int    system        Params((char *));
  204. #endif                    /* SystemFncs */
  205.  
  206. #include "::common:cproto.h"
  207.